local S = minetest.get_translator("arena_lib")
local sky_tools = {
  "arena_lib:sky_sky",
  "arena_lib:sky_sun",
  "arena_lib:sky_moon",
  "arena_lib:sky_stars",
  "arena_lib:sky_clouds",
  "",
  "",
  "arena_lib:editor_return",
  "arena_lib:editor_quit",
}



minetest.register_tool("arena_lib:sky_sky", {

    description = S("Set sky"),
    inventory_image = "arenalib_tool_sky_sky.png",
    groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = "2"},
    on_place = function() end,
    on_drop = function() end,

    on_use = function(itemstack, user, pointed_thing)
      --TODO: formspec cielo
    end
})



minetest.register_tool("arena_lib:sky_sun", {

    description = S("Set sun"),
    inventory_image = "arenalib_tool_sky_sun.png",
    groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = "2"},
    on_place = function() end,
    on_drop = function() end,

    on_use = function(itemstack, user, pointed_thing)
      --TODO: formspec sole
    end
})



minetest.register_tool("arena_lib:sky_moon", {

    description = S("Set moon"),
    inventory_image = "arenalib_tool_sky_moon.png",
    groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = "2"},
    on_place = function() end,
    on_drop = function() end,

    on_use = function(itemstack, user, pointed_thing)
      --TODO: formspec luna
    end
})



minetest.register_tool("arena_lib:sky_stars", {

    description = S("Set stars"),
    inventory_image = "arenalib_tool_sky_stars.png",
    groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = "2"},
    on_place = function() end,
    on_drop = function() end,

    on_use = function(itemstack, user, pointed_thing)
      --TODO: formspec stelle
    end
})



minetest.register_tool("arena_lib:sky_clouds", {

    description = S("Set clouds"),
    inventory_image = "arenalib_tool_sky_clouds.png",
    groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = "2"},
    on_place = function() end,
    on_drop = function() end,

    on_use = function(itemstack, user, pointed_thing)
      --TODO: formspec nuvole
    end
})



function arena_lib.give_sky_tools(player)
  player:get_inventory():set_list("main", sky_tools)
end
